﻿using Newtonsoft.Json.Linq;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ExtendNetease_DGJModule.MixMusicApi.M
{
    public  class SongInfoMix
    {
        public SongInfoMix(long Id, string Name,string AId, string[] Artist,string p,string d)
        {
            name = Name;
            id = Id;
            aId = AId;
            artists = Artist;
            platform = p;
            duration = d;
        }
        public SongInfoMix()
        {
            
        }
        public SongInfoMix(JToken jt) : this(
            jt["id"].ToObject<long>(),
            jt["name"].ToString(),
            jt["aId"].ToString(),
            jt["ar"].Select(T=>T["name"].ToString()).ToArray(),
            jt["platform"].ToString(),
            jt["duration"].ToString()
            )
        {

        }
        public string name { get; set; }
        public long id { get; set; }
        public string aId { get; set; }
        public string[] artists { get; set; }
        public string FilePath { get; set; }
        public string Url { get; set; }
        public string platform { get; set; }
        public string duration { get; set; }

    }
}
